package User;

import Interface.*;

import java.util.Scanner;

/**
 * @Author YuanYuan
 * @Date 2022/5/18
 * @Time 10:49
 */
public class AdminUser extends User{

    public static final String code = "admin";

    public AdminUser(String name) {
        super(name);
        this.iNterfaces = new INterface[]{
                new ExitBook(),
                new AddBook(),
                new DelBook(),
                new FindBook(),
                new SeeBook()
        };
    }
    @Override
    public int menu() {

        Scanner scanner = new Scanner(System.in);

        System.out.println("尊敬的管理员:"+getName()+" 欢迎进入图书管理系统!");
        System.out.println("1.添加图书");
        System.out.println("2.删除图书");
        System.out.println("3.查找图书");
        System.out.println("4.显示图书");
        System.out.println("0.退出");

        System.out.print("请输入进行的操作:->");
        int score = scanner.nextInt();
        return score;
    }
}
